package com.security.common.code;

import org.springframework.web.context.request.ServletWebRequest;

/**
 * @Author: TongRui乀
 * @Date: 2020/3/21 16:31
 * @description：
 */
public interface ValidateCodeProcessor {

    String SESSION_CACHE_KEY = "code_";

    /**
     *  创建校验码
     * @param request
     * @return
     */
    void create(ServletWebRequest request);

    /**
     *  校验
     * @param request
     */
    void validate(ServletWebRequest request);

}
